.class final Lcom/ninesky/browser/readinglist/h;
.super Landroid/widget/SimpleCursorAdapter;


# instance fields
.field private a:Landroid/content/Context;

.field private synthetic b:Lcom/ninesky/browser/readinglist/ReadingListActivity;


# direct methods
.method public constructor <init>(Lcom/ninesky/browser/readinglist/ReadingListActivity;Landroid/content/Context;Landroid/database/Cursor;[Ljava/lang/String;[I)V
    .locals 6

    iput-object p1, p0, Lcom/ninesky/browser/readinglist/h;->b:Lcom/ninesky/browser/readinglist/ReadingListActivity;

    const v2, 0x7f03001b

    move-object v0, p0

    move-object v1, p2

    move-object v3, p3

    move-object v4, p4

    move-object v5, p5

    invoke-direct/range {v0 .. v5}, Landroid/widget/SimpleCursorAdapter;-><init>(Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[I)V

    iput-object p2, p0, Lcom/ninesky/browser/readinglist/h;->a:Landroid/content/Context;

    iput-object p3, p0, Lcom/ninesky/browser/readinglist/h;->mCursor:Landroid/database/Cursor;

    return-void
.end method


# virtual methods
.method public final getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x4

    if-eqz p2, :cond_0

    instance-of v0, p2, Lcom/ninesky/browser/readinglist/j;

    if-nez v0, :cond_3

    :cond_0
    new-instance v0, Lcom/ninesky/browser/readinglist/j;

    iget-object v1, p0, Lcom/ninesky/browser/readinglist/h;->a:Landroid/content/Context;

    invoke-direct {v0, v1}, Lcom/ninesky/browser/readinglist/j;-><init>(Landroid/content/Context;)V

    :goto_0
    invoke-virtual {p0, p1}, Lcom/ninesky/browser/readinglist/h;->getItem(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Landroid/database/Cursor;

    const/4 v1, 0x0

    invoke-interface {p0, v1}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/readinglist/j;->setId(I)V

    invoke-interface {p0, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/readinglist/j;->a(Ljava/lang/String;)V

    const/4 v1, 0x2

    invoke-interface {p0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/readinglist/j;->c(Ljava/lang/String;)V

    const/4 v1, 0x3

    invoke-interface {p0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/readinglist/j;->b(Ljava/lang/String;)V

    invoke-interface {p0, v2}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/readinglist/j;->a(I)V

    invoke-interface {p0, v2}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    if-ne v1, v3, :cond_1

    const v1, 0x7f060011

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/readinglist/j;->setBackgroundResource(I)V

    invoke-virtual {v0}, Lcom/ninesky/browser/readinglist/j;->b()V

    :cond_1
    invoke-interface {p0, v2}, Landroid/database/Cursor;->getInt(I)I

    move-result v1

    if-nez v1, :cond_2

    invoke-virtual {v0}, Lcom/ninesky/browser/readinglist/j;->a()V

    const v1, 0x7f060019

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/readinglist/j;->setBackgroundResource(I)V

    :cond_2
    return-object v0

    :cond_3
    check-cast p2, Lcom/ninesky/browser/readinglist/j;

    move-object v0, p2

    goto :goto_0
.end method
